package com.tanhua.model.mongo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.bson.types.ObjectId;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;

/**
 * @Desprition:test
 * @Create by:ZhangXu
 * @Date: 2021/11/7  18:17
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Document(collection = "focus_user")
public class FocusUser implements Serializable {

    private static final long serialVersionUID = 8468424638246809233L;
    private ObjectId id;
    private Long userId;        //点关注的用户id
    private Long followUserId;  //被关注的用户id
    private Long created;       //关注时间
}
